home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / gcc / gcc260utils.lha / gnu / s / restorelinks
Encoding:
Text File  |  1994-07-31  |  510 b   |  31 lines

  1. #!/bin/sh
  2.  
  3. if [ "$1" = "copy" ]; then
  4.   PRG=/gnu/bin/cp -p
  5. else
  6.   PRG=/gnu/bin/ln
  7. fi
  8.  
  9. cd /gnu/bin
  10. /gnu/bin/rm -f gunzip zcat fgrep egrep d v vdir flex++ ginstall ksh gawk [
  11. $PRG gzip gunzip
  12. $PRG gzip zcat
  13. $PRG grep fgrep
  14. $PRG grep egrep
  15. $PRG dir d
  16. $PRG dir v
  17. $PRG dir vdir
  18. $PRG flex flex++
  19. $PRG install ginstall
  20. $PRG sh ksh
  21. $PRG awk gawk
  22. $PRG test [
  23. if [ -d /gnu/man/man1 ]; then
  24.   cd /gnu/man/man1
  25.   rm -f gunzip.1 zcat.1 zcmp.1
  26.   $PRG gzip.1 gunzip.1
  27.   $PRG gzip.1 zcat.1
  28.   $PRG zdiff.1 zcmp.1
  29. fi
  30. cd /gnu/..
  31.